package com.flw.eslab.dto;

import com.flw.eslab.model.Info;



public class Info_Dto {
	private Integer id;
	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	private String title;// 标题
	private String content;// 内容
	private String author;// 作者
	private String type;// 信息类别

	public Info_Dto() {
		super();
	}


	/*---------------------------------------*/
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}
	
	public Info toInfo(){
		Info info=new Info();
		info.setId(id);
		info.setAuthor(author);
		info.setContent(content);
		info.setTitle(title);
		info.setType(type);
		return info;
	}
}
